package com.zhang.boot.core.constants;

public class ApiConstant {

    public static final int ZERO = 0;
    public static final int ABNORMAL = -1;
    public static final int ONE = 1;
    public static final String ADMIN = "admin";
    public static final String SUPER_ADMIN = "超级管理员";
    public static final String DELIMITER = ",";
    public static final String SUCCESS = "success";
    public static final String MATH = "math";
    public static final String CHAR = "char";
    public static final String EMPTY = "";
    public class MenuConstant {
        /**
         * 菜单类型（目录）
         */
        public static final String TYPE_DIR = "M";

        /**
         * 菜单类型（菜单）
         */
        public static final String TYPE_MENU = "C";

        /**
         * 菜单类型（按钮）
         */
        public static final String TYPE_BUTTON = "F";

        /**
         * Layout组件标识
         */
        public final static String LAYOUT = "Layout";
    }


    public class LoginConstant {
        public static final String LOGIN_USER_KEY = "login-user-key";
    }

    public class DateConstant {
        /**
         * 默认日期时间格式
         */
        public static final String DEFAULT_DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
        /**
         * 默认日期格式
         */
        public static final String DEFAULT_DATE_FORMAT = "yyyy-MM-dd";
        /**
         * 默认时间格式
         */
        public static final String DEFAULT_TIME_FORMAT = "HH:mm:ss";
    }


}
